<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="top.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet"  href="static/css/bootstrap.min.css" />
	<style type="text/css">
		body{
		    padding-top:50px;
				
		}
	
	</style>
	
</head>
<body class="body">

	<div class="container">
	  <div class="row">
	  
	  <!-- 导入左侧部分 -->
		<jsp:include page="side.jsp">
			<jsp:param value="contact" name="tag"/>
		</jsp:include>
		
		
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0">
				<li class="active">
					<a href="contact.jspx"><i class="icon-user"></i>联系人</a>
				</li>
			</ul>
			<div class="wall">
				
					
						<address>
							<h3>${contact.name }</h3>
							<p>${contact.company }</p>
							<small>手机</small> ${contact.cellphone }<br/>
							<small>固话</small> ${contact.phone }<br/><br/>
							<small>邮箱</small> ${contact.email }<br/> 
							<small>地址</small> ${contact.address }<br/><br/>
							<small>主页</small> <a href="${contact.website }">${contact.website }</a><br/>
							<small>微博</small> <a href="${contact.weibo }">${contact.weibo }</a><br/>
						</address>
						<div class="line">记录</div>
						
						<form action="contactnote.jspx?m=save&id=${contact.id}" method="post">
							<textarea class="span5" rows="3" name="content"></textarea>
							<br/>
							<button>发布</button>
						</form>
					
					
		    <c:if test="${empty contactNoteList}">
							此联系人还没有任何记录！
		    </c:if>
	    	<c:forEach items="${contactNoteList}" var="cn">	
				<blockquote>
						 ${cn.content }
					<small>${cn.user.name }发布于${cn.createtime }</small>
				</blockquote>
			</c:forEach>
		<a href="contact.jspx?id=${contact.id }">←返回联系人列表</a>
			</div>
		
		</div>
	  </div>
	</div>
</body>
</html>